# This code is part of the MWP System
# Copyright (c) 2012 Benjamin Lubin (blubin@bu.com) 
# Published under and subject to the GPLv2 license available at http://www.gnu.org/licenses/gpl-2.0.html

'''
Created on Dec 18, 2012
@author: blubin
'''

from frontend.roleApplication import RoleApplication;
from frontend.form import Type;
from unique import UNIQUE;

class ProjectLeadApplication(RoleApplication):
    """ The PharmacistAsst User Interface """

    def __init__(self):
        super(ProjectLeadApplication, self).__init__("CharacterCreation"+UNIQUE, "ProjectLead");
        self.register_transition_step("EvaluateConcept", self.evaluate_concept_form_creator, name_fields=["Name"]);
        self.register_transition_step("EvaluateArt", self.evaluate_art_form_creator, name_fields=["Name"]);

    def evaluate_concept_form_creator(self, stepname, form):
        form.add_task_label(fields=["Name", "Description", "CharacterType", "ColorScheme"]);
        form.add_field(Type.BOOLEAN, "IsConceptApproved", labeltext="Is Concept Approved?");

    def evaluate_art_form_creator(self, stepname, form):
        form.add_task_label(fields=["Name", "PolygonCount", "TextureResolution"]);
        form.add_field(Type.BOOLEAN, "IsArtApproved", labeltext="Is Art Approved?");

if __name__ == '__main__':
    app = ProjectLeadApplication();
    app.MainLoop();